import { baseRouter } from '@/config'

export default [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/:pathMatch(.*)*',
    name: 'NotFound',
    component: () => import('@/pages/base/not-found.vue'),
    meta: {
      title: 'NotFound',
      showHeader: false
    }
  },
  {
    path: baseRouter.LOGIN,
    name: 'Login',
    component: () => import('@/pages/base/login/index.vue'),
    meta: {
      title: '登录',
      showHeader: false
    }
  },
  {
    path: '/home',
    name: 'Home',
    component: () => import('@/pages/home/index.vue'),
    meta: {
      title: '首页',
      showHeader: false
    }
  },
  {
    path: '/activity',
    name: 'Activity',
    component: () => import('@/pages/activity/index.vue'),
    meta: {
      title: '活动',
      showHeader: false
    }
  },
  {
    path: '/activity/:id',
    name: 'ActivityDetail',
    component: () => import('@/pages/activity/detail.vue'),
    meta: {
      title: '活动详情',
      showHeader: true
    }
  },
  {
    path: '/welfare',
    name: 'Welfare',
    component: () => import('@/pages/welfare/index.vue'),
    meta: {
      title: '福利',
      showHeader: false
    }
  },
  {
    path: '/welfare/:id',
    name: 'WelfareDetail',
    component: () => import('@/pages/welfare/detail.vue'),
    meta: {
      title: '福利详情',
      showHeader: true
    }
  },
  {
    path: '/mine',
    name: 'Mine',
    component: () => import('@/pages/mine/index.vue'),
    meta: {
      title: '我的',
      showHeader: false
    }
  },
  {
    path: '/news',
    name: 'NewsDetail',
    component: () => import('@/pages/news/detail.vue'),
    meta: {
      title: '公告详情',
      showHeader: false
    }
  }
]
